package com.xyz.mockapi.mainlineorder.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xyz.mockapi.common.entity.BdSubProductTypeEntity;
import com.xyz.mockapi.common.mapper.BdSubProductTypeMapper;
import com.xyz.mockapi.mainlineorder.service.BdSubProductTypeService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BdSubProductTypeServiceImpl
        extends ServiceImpl<BdSubProductTypeMapper, BdSubProductTypeEntity> // ✅ 继承 ServiceImpl
        implements BdSubProductTypeService {
    @Override
    public List<BdSubProductTypeEntity> listByProductId(Long productId) {
        return lambdaQuery().eq(BdSubProductTypeEntity::getId, productId).list();
    }
}